<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/basecore/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Administration Login</title>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
		<meta http-equiv="Cache-Control" content="no-cache" />
		<link rel="stylesheet"	href="<%=request.getContextPath()%>/webresource/components/login/css/global.css"
			type="text/css" media="screen" />
		<link rel="stylesheet"	href="<%=request.getContextPath()%>/webresource/components/login/css/master.css"
			type="text/css" media="screen" />
		<script src="<%=request.getContextPath()%>/webresource/js/validatora.js" type="text/javascript"></script>
		<wit:topWindow/>		
	</head>
	<body class="login" >
		<!--[if lt IE 7]>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/webresource/components/login/css/ie6.css" type="text/css" media="screen" />    
    <![endif]-->
		<form id="Form1" name="Form1" action="loginController.wit"
			method="post" onsubmit="return FormValidator.validate(Form1,3)">
			<input name="command" value="login" type="hidden">
			<div id="panelErrorMsg" >
				<label>
					<%=request.getAttribute("errorMsg") != null ? request.getAttribute("errorMsg") : ""%>
				</label>
			</div>
			<div id="login">				
				<div id="cap-top">
					<img
						src="<%=request.getContextPath()%>/webresource/images/login/cap-top.png"
						alt="" />
				</div>				
				<div id="cap-body">
					<div id="branding"><label>Login to System</label></div>
					<div id="panelLogin">
						<div>
							<label>
								用户
							</label>
							<input type="text" class="textbox340" name="txtLogin"
								id="txtLogin" require="true" msg="请输入用户名"
								value="<%=request.getAttribute("txtLogin") != null ? request.getAttribute("txtLogin") : ""%>" />
						</div>
						<div>
							<label>
								密码
							</label>
							<input type="password" class="textbox340" require="true"
								msg="请输入密码" name="txtPassword" id="txtPassword" value="" />
						</div>

						<div class="submit clearfix">
							<input type="image"
								src="<%=request.getContextPath()%>/webresource/images/login/login.jpg"
								alt="Login" name="btnLogin" id="btnLogin" />
						</div>
						<!-- 
						<p class="lostpassword">
							<a href="">忘记密码</a> 或
							<a href="#" target="_blank"">需要帮助?</a>
						</p>
						 -->
					</div>
				</div>
				<div id="cap-bottom">
					<img
						src="<%=request.getContextPath()%>/webresource/images/login/cap-bottom.png"
						alt="" />
				</div>
			</div>
			<!-- END #login -->			
		</form>		
		<script language="javascript" type="text/javascript">		
			if (typeof document.getElementById('txtLogin')=='object'){            	
			    document.getElementById('txtLogin').focus();
			}			
			if (screen.width < 1024)
				alert('This application is best run in a screen resolution of 1024x768 or greater. You are running a smaller screen resolution.');				
			var detect = navigator.userAgent.toLowerCase();
			if ((detect.indexOf('mac') > 0) && (detect.indexOf('msie') > 0))
				alert('This application on Macintosh is optimized for OS X and Safari/Firefox browsers only. Internet Explorer browser is not supported.');
    </script>

	</body>
</html>
